package com.qbccn.bbs.mapper;

import com.qbccn.bbs.domain.BbsUserCount;
import org.apache.ibatis.annotations.Param;

/**
 * @author linke
 * @date 2020/5/30 22:50
 * @description
 */
public interface BbsUserCountMapper {

  int deleteByPrimaryKey(@Param("id") Integer id, @Param("username") String username);

  int insertSelective(BbsUserCount record);

  BbsUserCount selectByPrimaryKey(@Param("id") Integer id, @Param("username") String username);

  int updateByPrimaryKeySelective(BbsUserCount record);

  int updateByPrimaryKey(BbsUserCount record);

  int deleteByPrimaryKey(Integer id);

  BbsUserCount selectByPrimaryKey(Integer id);

  boolean hasUsername(String username);

  void sign(@Param("username") String username, @Param("num") int num);

  Integer getFlyKissNumber(@Param("username") String username);
}
